<?php
class Admin_Models_FeedbackModel extends Zend_Db_Table_Abstract{
	protected $_name="feedback";
	protected $_primary="id";
        public function loadlistmess(){
            $db = Zend_Db_Table_Abstract::getDefaultAdapter();
            $mySql = $db->select()->from($this->_name)->order('timedate DESC');
            return $result = $db->fetchAll($mySql);
        }
        public function search($time,$timeend){
              $db = Zend_Db_Table_Abstract::getDefaultAdapter();
            $mySql = $db->select()->from($this->_name)->where("timedate BETWEEN '".$time."' AND '".$timeend."'")->order('timedate DESC');
            return $result = $db->fetchAll($mySql);
        }
}
?>
